/**
* @author:kellen
* @contact:xiekellen@hotmail.com
* @company:achivo-gz
* @created on:
* @modified on:
*/

package com.sasis.service.impl;

import java.util.List;

import com.sasis.service.impl.BaseManager;
import com.sasis.model.VipServiceCabin;
import com.sasis.dao.VipServiceCabinDao;
import com.sasis.service.VipServiceCabinManager;

import com.sasis.util.PageList;
import com.sasis.util.PageRequest;

public class VipServiceCabinManagerImpl extends BaseManager implements VipServiceCabinManager {
    private VipServiceCabinDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setVipServiceCabinDao(VipServiceCabinDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.sasis.service.VipServiceCabinManager#getVipServiceCabins(com.sasis.model.VipServiceCabin)
     */
    public List getVipServiceCabins(final VipServiceCabin vipServiceCabin) {
        return dao.getVipServiceCabins(vipServiceCabin);
    }

    /**
     * @see com.sasis.service.VipServiceCabinManager#getVipServiceCabin(String id)
     */
    public VipServiceCabin getVipServiceCabin(final String id) {
        return dao.getVipServiceCabin(new Integer(id));
    }

    /**
     * @see com.sasis.service.VipServiceCabinManager#saveVipServiceCabin(VipServiceCabin vipServiceCabin)
     */
    public int saveVipServiceCabin(VipServiceCabin vipServiceCabin) {
    	return dao.saveVipServiceCabin(vipServiceCabin);
    }

    /**
     * @see com.sasis.service.VipServiceCabinManager#removeVipServiceCabin(String id)
     */
    public void removeVipServiceCabin(VipServiceCabin vipServiceCabin) {
        dao.removeVipServiceCabin( vipServiceCabin);
    }
    public PageList queryForPageList(String listStatementId,  
    		Object parameterObject, PageRequest pageRequest){
	return dao.queryForPageList(listStatementId,   parameterObject, pageRequest);
    }
}
